package com.two.lbms.dao;

import com.two.lbms.base.BaseMapper;
import com.two.lbms.hjx.model.RenewQuery;
import com.two.lbms.syt.dto.LendDTO;
import com.two.lbms.vo.LendList;
import java.time.LocalDate;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author hjx
 * @version V1.0
 * @Date 2023/7/28 20:21
 */

@Mapper
public interface LendListMapper extends BaseMapper<LendList, Integer> {

    int deleteByPrimaryKey(@Param("id") Integer id, @Param("lendDate") LocalDate lendDate);

    LendList selectByPrimaryKey(@Param("id") Integer id);

    Integer insertSelective(LendList lendList);

    Integer updateByPrimaryKeySelective(LendList lendList);

    Integer deleteBatch(Integer[] ids);

    LendDTO queryById(Integer id);

    Integer update(LendList lendList);

    LendDTO selectByRenew(RenewQuery renewQuery);

    Integer selectLendCount();
}